package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.SkuSaleAttrValueEntity;
import com.atguigu.gulimall.product.entity.vo.Attr;
import com.atguigu.gulimall.product.entity.vo.SkuItemSaleAttrVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * sku销售属性&值
 * 
 * @author huyulu
 * @email 1085068942@qq.com
 * @date 2021-11-26 22:16:12
 */
@Mapper
public interface SkuSaleAttrValueDao extends BaseMapper<SkuSaleAttrValueEntity> {

    /**
     * 根据 spuId 查询出所有销售属性名称和属性值
     * @author 胡菜鸡
     * @date 2022/1/13 11:59
     */
    List<SkuItemSaleAttrVo> selectSaleAttrsBySpuId(@Param("spuId") Long spuId);
}
